import {request} from "umi"
import {addDefence,ClassPlanInit} from "@/utils/interface"

export let getClasssPlanTreelist = () => {
    return request("/sxpt/defence/getClasssPlanTree")
}


export let selectStationLabel = () => {
    return request("/sxpt/station/selectStationLabel")
}
//保存
export let addDefencelist = (data:addDefence) => {
    return request("/sxpt/defence",{
        method:'post',
        data
    })
}
///dev-api/sxpt/defence/getDefenceDetial
// /sxpt/progress/selectClassPlanInit
export let selectClassPlanInit = (params:ClassPlanInit) => {
    return request("/sxpt/progress/selectClassPlanInit",{params})
}

export let getDefenceDetial = (params:string) => {
    return request("/sxpt/defence/getDefenceDetial",{
        params:{defenceId:params}
    })
}